﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		DropDownList</h2>
	 <select id="s1" multiple="multiple"  >
	</select> 
	
	<%=Html.DropDownTree("folder", new DropDownTreeSetting { url = "/Post/GetTree", width = 200 })%>
	
	<button id="btnRetrieve" value="">取值</button>
<div>
 <div id="list"></div>			
</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">

	<script src="../../Content/js/jquery/plugins/dropdowntree/ui.core.js" type="text/javascript"></script> 

	<link href="../../Content/js/jquery/plugins/dropdowntree/dropdowntree.css" rel="stylesheet" type="text/css" />

	<script src="../../Content/js/jquery/plugins/dropdowntree/dropdowntree.js" type="text/javascript"></script>
	
	<script src="../../Content/js/jquery/plugins/jstree/_lib/jquery.cookie.js" type="text/javascript"></script>

	<script src="../../Content/js/jquery/plugins/jstree/_lib/jquery.hotkeys.js" type="text/javascript"></script>

	<script src="../../Content/js/jquery/plugins/jstree/jquery.jstree.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#s1").dropdowntree({ width: 200, url: "/Post/GetTree" });
			$("#btnRetrieve").click(function() {
				alert("DropDownList's Value:" + $("#s1").val());
			});
		});
		
	
	</script>

    <%--<script src="../../Content/js/jquery/plugins/dropdowntree/jquery.dropdowntree.js" type="text/javascript"></script>

	<link href="../../Content/js/jquery/plugins/dropdowntree/dropdowntree.css" rel="stylesheet"
		type="text/css" />

	<script src="../../Content/js/jquery/plugins/dropdowntree/yalist.js" type="text/javascript"></script>--%>
</asp:Content>
